| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Static Public Member Functions | List of all members
nkAstraeus::PostProcessingLib Class Referencefinal

Shader program helping sources to handle post processing passes. More...

## Static Public Member Functions
static nkMemory::StringView | nkPostProcessDefaultVertex ()

## Detailed Description

Shader program helping sources to handle post processing passes.

## Member Function Documentation

## ◆ nkPostProcessDefaultVertex()

static nkMemory::StringView nkAstraeus::PostProcessingLib::nkPostProcessDefaultVertex | ( |  | ) |
| static

Full vertex sources for projecting on the full screen the default post processing mesh defined in nkGraphics used in a nkGraphics::PostProcessPass. It can be directly used as a vertex shader program source, with compile time defines customizing its behaviour :

Define | Description
--- | ---
NK_POST_PROCESS_DEFAULT_VERTEX_DISABLE_UV | If defined, the TEXCOORD0 attribute won't be processed nor required. Can be useful to optimize or use a custom mesh / pixel logic.

The program will output the semantics :

Semantic (HLSL) / In variable name (GLSL) | Type | Meaning | Condition
--- | --- | --- | ---
PIX_TEXCOORD | float2 (HLSL) / vec2 (GLSL) / nkFloat2 (Cross) | The texture coordinates on screen. | NK_POST_PROCESS_DEFAULT_VERTEX_DISABLE_UV is not defined.

Returns
  The source for the program described.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsAstraeus/Graphics/ShaderLibs/PostProcessing/PostProcessingLib.h